from PIL import Image
import pytesseract

def recognize_texts_with_picture():
    pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'

    image = Image.open('sample2.png')
    text = pytesseract.image_to_string(image, lang='chi_sim')
    return text